<template>
  <v-chart class="upperImg" :height="height" @popHead="headPop">
    upper{{height}}
  </v-chart>
</template>

<script setup>
// import vChart from '../../components/widget/chart.vue'
import { ref, watchEffect} from 'vue'
const props = defineProps({
  width: 0,
  height: 0
})
const chart = ref(null)
const headPop = obj=>{
    console.log('upper-headPop-', obj)
    chart.value = obj
}
        // 监听chart的变化`
watchEffect(()=>{
    console.log('upper', chart.value)
})
</script>
<style scoped>
.upperImg{
  font-size: 30px;
  width: 100%;
}
</style>
